//
//  ZYPrototypeImp.m
//  DesignMode
//
//  Created by wangzhipan on 2024/10/15.
//

#import "ZYPrototypeImp.h"

@implementation ZYPrototypeImp
- (id)copyWithZone:(NSZone *)zone
{
    ZYPrototypeImp *copy = [[ZYPrototypeImp alloc] init];
    copy.name = [self.name copy];
    return copy;
}
@end

@implementation ZYUseTool

- (void)setUp
{
    ZYPrototypeImp *first = [[ZYPrototypeImp alloc] init];
    first.name = @"Tom";
    
    ZYPrototypeImp *second = [first copy];
    NSLog(@"%@", second.name);
}

@end
